<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>计时器</title>
	</head>
	<body>
		<script type="text/javascript">
			//三秒后在网页输出 你知道母爱的伟大吗
			function myfun(){
				document.write("你知道母爱的伟大吗"+"<br>");
			}
			function outa(){
				document.write("食我怀孕凝视"+"<br />");
			}
			window.setTimeout(myfun,3000);
			//每隔3秒在网页输出；吃我怀孕凝视啦
			window.setInterval(outa,3000);
		</script>
	</body>
</html>
